﻿@namespace ImoviesBlazorAntPro
@inherits LayoutComponentBase
@using ImoviesBlazorAntPro.Client.Components;


<AntDesign.ProLayout.BasicLayout Logo="@("/imgs/logo.png")"
                                    MenuData="_menuData">
    @*顶部右边*@
    <RightContentRender>
        <RightContent />
    </RightContentRender>
    @*中间*@
    <ChildContent>
        @Body
    </ChildContent>
    @*底部*@
    <FooterRender>
        @* <FooterView Copyright="2021 Ant Design Blazor" Links="Links"></FooterView> *@
    </FooterRender>
</AntDesign.ProLayout.BasicLayout>


@*设置*@
<SettingDrawer />

@code
{
    private readonly MenuDataItem[] _menuData =
    {
        new MenuDataItem
        {
            Name = "首页",
            Path = "/admin/welcome",
            Key = "welcome",
            Icon = "home",
        },
        new MenuDataItem
        {
            Name = "视频管理",
            Key = "vmanage",
            Icon = "play-square",
            Children = new MenuDataItem[]
            {
                new MenuDataItem
                {
                    Name = "电视剧",
                    Path = "/admin/vmanage/teleplay",
                    Key = "vmanage_teleplay",
                },
                new MenuDataItem
                {
                    Name = "动漫",
                    Path = "/admin/vmanage/animation",
                    Key = "vmanage_animation",
                },
                new MenuDataItem
                {
                    Name = "电影",
                    Path = "/admin/vmanage/movie",
                    Key = "vmanage_movie",
                },
            }
        },
        new MenuDataItem
        {
            Name = "连接管理",
            Key = "vlmanage",
            Icon = "link",
            Children = new MenuDataItem[]
            {
                new MenuDataItem
                {
                    Name = "电视剧",
                    Path = "/admin/vlmanage/teleplay",
                    Key = "vlmanage_teleplay",
                },
                new MenuDataItem
                {
                    Name = "动漫",
                    Path = "/admin/vlmanage/animation",
                    Key = "vlmanage_animation",
                },
                new MenuDataItem
                {
                    Name = "电影",
                    Path = "/admin/vlmanage/movie",
                    Key = "vlmanage_movie",
                },
            }
        },
        new MenuDataItem
        {
            Name = "年评管理",
            Path = "/admin/armanage",
            Key = "armanage",
            Icon = "comment",
        },
        new MenuDataItem
        {
            Name = "采集管理",
            Path = "/admin/collect",
            Key = "collect",
            Icon = "global",
        },
    };

    // public LinkItem[] Links { get; set; } =
    // {
    //    new LinkItem
    //    {
    //        Key = "Ant Design Blazor",
    //        Title = "Ant Design Blazor哈哈哈",
    //        Href = "https://antblazor.com",
    //        BlankTarget = true,
    //    },
    //    new LinkItem
    //    {
    //        Key = "github",
    //        Title = (RenderFragment)(@<Icon Type="github" />),
    //        Href = "https://github.com/ant-design-blazor/ant-design-pro-blazor",
    //        BlankTarget = true,
    //    },
    //    new LinkItem
    //    {
    //        Key = "Blazor",
    //        Title = "Blazor",
    //        Href = "https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor?WT.mc_id=DT-MVP-5003987",
    //        BlankTarget = true,
    //    }
    // };
}